import Vue from "vue";
export default Vue.extend({
  data() {
    return {
      isCollapse: false
    }
  },
  props: {
    isOpen: false
  },
  watch: {
    isCollapse(newValue, oldValue) {
      this.$emit('update:isOpen', newValue)
    }
  },
  methods: {
    handleOpen(key, keyPath) {
      // console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      // console.log(key, keyPath);
    },
    selectItem(key, keyPath) {
      // console.log(key + '****' + keyPath);
      if (key == '1-1') {
        this.$router.push('/index');
      }
      if (key == '1-2') {
        this.$router.push('/second');
      }
    }
  }
});